Skip to content

Conversation

vkarpov15
Copy link
Collaborator

Summary

We recently added BaseConnection and BaseCollection in #15548, but that implementation has some oversights. With current implementation, you can't do class MyCollection extends BaseCollection because BaseCollection is an interface in TypeScript, not a class.

It is admittedly a bit strange that we have BaseConnection extends Connection {}, that's more to derisk breaking anything. In the future, I'd prefer if BaseConnection contained all the Connection definitions and we just had Connection extends BaseConnection.

Examples

@vkarpov15 vkarpov15 added this to the 8.18 milestone Aug 8, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Aug 9, 2025
@vkarpov15 vkarpov15 changed the base branch from master to 8.18 August 16, 2025 20:56
@vkarpov15 vkarpov15 merged commit bff162d into 8.18 Aug 16, 2025
5 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/base-connection-improvements branch August 16, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants